{% extends "_layout.html" %}
{% import "component/statistics.njk" as statistics %}

{# 样式代码 #}
{% block style %}

{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="nwrapper">
    <!--顶部-->
    <div class="head dot_head">
        <div class="head_name">用户中心</div>
        <a href="user2_personal_setting.html" class="head_right"><b class="a sz"></b></a>
    </div>
    <!--/顶部-->
    <!--中间-->
    <div class="main vip">
        <!--tab-->
        <div class="user_top">
            <div class="user_top_box">
                <a href="user2_personal_setting.html"><img src="{{ ctx.app.config.api.static }}/images/tx3.png"><!--<img src="{{ ctx.app.config.api.static }}/images/user_unadmin.png" />--></a>
                <b class="a sb nx"></b>
            </div>
            <div class="user_toptext">{{data.nickname}}</div>
            <a href="javascript:0;" class="sign">签到</a>
        </div>

        <div class="clear"></div>
        <div class="user_hbox">
            <p class="user_hbox1"><span>123.00 <em>元</em></span>余额</p>
            <p class="user_hbox2"><span>5 <em>个</em></span>优惠</p>
            <p class="user_hbox3"><span>12306 <em>分</em></span>积分</p>
        </div>

        <a href="../order/my_order.html?id=0" class="userli userli_hr wddd"><em>我的订单<b class="a userli_jt"></b><span id="" class="check_all_order">查看全部订单</span></em></a>

        <div class="check_order">
            <a href="../order/my_order.html?id=1" class="check_order_btn dfk"><img src="{{ ctx.app.config.api.static }}/images/check_oeder_btn1.png" /><span>待付款</span></a>
            <a href="../order/my_order.html?id=2" class="check_order_btn yfk"><img src="{{ ctx.app.config.api.static }}/images/check_oeder_btn2.png" /><span>已付款</span></a>
            <a href="../order/my_order.html?id=3" class="check_order_btn dpj"><img src="{{ ctx.app.config.api.static }}/images/check_oeder_btn3.png" /><span>待评价</span></a>
            <a href="../order/my_order.html?id=4" class="check_order_btn shtk"><img src="{{ ctx.app.config.api.static }}/images/check_oeder_btn4.png" /><span>售后/退款</span></a>
        </div>

        <a href="user_add.html" class="userli userli_hr"><b class="a userli_a hyzx"></b><em>会员中心<b class="a userli_jt"></b></em></a>

        <a href="user2_address.html" class="userli"><b class="a userli_a shdz"></b><em>收货地址<b class="a userli_jt"></b></em></a>
        <a href="user2_save.html" class="userli"><b class="a userli_a wdsc"></b><em>我的收藏<b class="a userli_jt"></b></em></a>
        <a href="user2_jicun_add.html" class="userli"><b class="a userli_a jsjc"></b><em>酒水寄存<b class="a userli_jt"></b></em></a>
        <a href="user2_service.html" class="userli  userli_hr"><b class="a userli_a yyzx"></b><em>便民服务<b class="a userli_jt"></b></em></a>

        <a href="user_share.html" class="userli"><b class="a userli_a yq"></b><em>邀请好友获得的佣金<b class="a userli_jt"></b></em></a>
        <a href="javascript: 0;" class="userli userli_hr"><b class="a userli_a wyq"></b><em>我邀请的好友<b class="a userli_jt"></b></em></a>

    </div>
    <!--/中间-->

    <div class="foot">
        <a href="/index" class="index"><i></i><em>首页</em></a>
        <a href="../map.html" class="map"><i></i><em>停车</em></a>
        <a href="/discount" class="order"><i></i><em>优惠</em></a>
        <a href="javascript: 0;" class="user active"><i></i><em>我的</em></a>
        <!--127.0.0.1：7001/user2/user2.html-->
        <!--/Users/laowangi/Desktop/GIT/biz-node/biz-web/app/view/user2/user2.html-->
    </div>

</div>

{% endblock %}

{#js代码#}
{% block js %}

<script>
    $(document).ready(function(e) {
        $(".orderconf_box_li").click(function () {
            $(this).children("b").addClass("select").parent().siblings().children("b").removeClass("select");
        });

    });

    $(".tcc").hide();

    //搜索地区选择
    $(".store_list_tabtc_li").click(function() {
        $(this).siblings().removeClass("active");
        $(this).addClass("active");
        event.stopPropagation();
    });

    // $(".order_footer").click(function() {
    //     $(".tcc").show().css("display", "block");
    // });

    //支付倒计时
    var intDiff = parseInt(900); //倒计时总秒数量
    function timer(intDiff) {
        var miao = setInterval(function() {
            var day = 0,
                hour = 0,
                minute = 0,
                second = 0; //时间默认值
            if(intDiff >= 0) {
                day = Math.floor(intDiff / (60 * 60 * 24));
                hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
                minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
                second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
            }else {
                clearInterval(miao)
                return false;
            }
            if(minute <= 9) minute = '0' + minute;
            if(second <= 9) second = '0' + second;
            $('#minute_show').html('<s></s>' + minute+ ':');
            $('#second_show').html('<s></s>' + second);
            intDiff--;
        }, 1000);
    }
    $(function() {
        timer(intDiff);
    });

</script>
{% endblock %}
